<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>module Minitest - minitest: Ruby Standard Library Documentation</title>


<script src="./js/navigation.js" defer></script>
<script src="./js/search.js" defer></script>
<script src="./js/search_index.js" defer></script>
<script src="./js/searcher.js" defer></script>
<script src="./js/darkfish.js" defer></script>

<script src="./js/jquery-3.2.0.min.js"></script>

<script src="./js/vue.min.js"></script>
<script src="./js/js.cookie.min.js"></script>

<link href="./css/fonts.css" rel="stylesheet">
<link id='rdoccss' href="./css/rdoc.css" rel="stylesheet">
<link href="./css/carbon17.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "./";
  var index_rel_prefix = "./";
  var darkModeCsseHref = "./css/rdoc-dm.css"
  var defaultModeCssHref = "./css/rdoc.css"
  // var cssDarkmode = Cookies.get('darkmode');
  
  if( Cookies.get("darkmode") == "true") {
	$('#rdoccss').attr("href", darkModeCsseHref);
}

//  https://cssdeck.com/blog/simple-jquery-stylesheet-switcher/

document.write('<style type="text/css">body{display:none}</style>');

</script>


</head>
<body id="top" role="document" class="module">
  <!-- this is class.html -->

  <div id='actionbar' >
    <div class='wrapper mdiv'>
      <ul class='grids g0'></ul>
    </div> 
    <!-- VERSION HEADER for 3.3.0.preview2 NOT FOUND -->
  </div> <!-- end action bar -->

  <div class='wrapper hdiv'>

    


    <nav id='vapp' role="navigation">
    <div id="project-navigation">
      <div id="home-section" role="region" title="Quick navigation" class="nav-section">
  <h2><a href="./index.html" rel="home">Home</a></h2>

  <div id="table-of-contents-navigation"  >
    <a href="./table_of_contents.html#pages">Pages</a>
    <a href="./table_of_contents.html#classes">Classes</a>
    <a href="./table_of_contents.html#methods">Methods</a>
  </div>
</div>

      <div id="search-section" role="search" class="project-section initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <div id="search-field-wrapper">
      <input id="search-field" role="combobox" aria-label="Search"
             aria-autocomplete="list" aria-controls="search-results"
             type="text" name="search" placeholder="Search" spellcheck="false"
             title="Type to search, Up and Down to navigate, Enter to load">
    </div>

    <ul id="search-results" aria-label="Search Results"
        aria-busy="false" aria-expanded="false"
        aria-atomic="false" class="initially-hidden"></ul>
  </form>
</div>

    </div>


    

    <button id='toggleThing' @click="toggleNav()" >Show/hide navigation</button>
    <div :class="isOpen ? 'block' : 'hidden' " id='toggleMe'>
      <div id="class-metadata">
        
        
        
        
        
<!-- Method Quickref -->
<div id="method-list-section" class="nav-section">
  <h3>Methods</h3>

  <ul class="link-list" role="directory">
    <li ><a href="#method-c-__run">::__run</a>
    <li ><a href="#method-c-after_run">::after_run</a>
    <li ><a href="#method-c-autorun">::autorun</a>
    <li ><a href="#method-c-run">::run</a>
    <li ><a href="#method-i-backtrace_filter">#backtrace_filter</a>
    <li ><a href="#method-i-extensions">#extensions</a>
    <li ><a href="#method-i-info_signal">#info_signal</a>
    <li ><a href="#method-i-parallel_executor">#parallel_executor</a>
    <li ><a href="#method-i-reporter">#reporter</a>
    <li ><a href="#method-i-seed">#seed</a>
  </ul>
</div>

      </div>
     </div>
    </nav>


    <div id='extraz'><div class='adzbox-index'  >
      
     </div>         
    </div>

    <main role="main" aria-labelledby="module-Minitest">
    <h1 id="module-Minitest" class="module">
      module Minitest
    </h1>

    <section class="description">
    
    </section>

      <section id="5Buntitled-5D" class="documentation-section">





                <section id="public-class-5Buntitled-5D-method-details" class="method-section">
                <header>
                <h3>Public Class Methods</h3>
                </header>

                  <div id="method-c-__run" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">__run</span><span
                                class="method-args">(reporter, options)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Internal run method. Responsible for telling all Runnable sub-classes to run.</p>

                              <div class="method-source-code" id="__run-source">
            <pre><span class="ruby-comment"># File minitest-5.20.0/lib/minitest.rb, line 176</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">__run</span> <span class="ruby-identifier">reporter</span>, <span class="ruby-identifier">options</span>
  <span class="ruby-identifier">suites</span> = <span class="ruby-constant">Runnable</span>.<span class="ruby-identifier">runnables</span>.<span class="ruby-identifier">shuffle</span>
  <span class="ruby-identifier">parallel</span>, <span class="ruby-identifier">serial</span> = <span class="ruby-identifier">suites</span>.<span class="ruby-identifier">partition</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">test_order</span> <span class="ruby-operator">==</span> <span class="ruby-value">:parallel</span> }

  <span class="ruby-comment"># If we run the parallel tests before the serial tests, the parallel tests</span>
  <span class="ruby-comment"># could run in parallel with the serial tests. This would be bad because</span>
  <span class="ruby-comment"># the serial tests won&#39;t lock around Reporter#record. Run the serial tests</span>
  <span class="ruby-comment"># first, so that after they complete, the parallel tests will lock when</span>
  <span class="ruby-comment"># recording results.</span>
  <span class="ruby-identifier">serial</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">suite</span><span class="ruby-operator">|</span> <span class="ruby-identifier">suite</span>.<span class="ruby-identifier">run</span> <span class="ruby-identifier">reporter</span>, <span class="ruby-identifier">options</span> } <span class="ruby-operator">+</span>
    <span class="ruby-identifier">parallel</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">suite</span><span class="ruby-operator">|</span> <span class="ruby-identifier">suite</span>.<span class="ruby-identifier">run</span> <span class="ruby-identifier">reporter</span>, <span class="ruby-identifier">options</span> }
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-c-after_run" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">after_run</span><span
                                class="method-args">(&amp;block)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>A simple hook allowing you to run a block of code after everything is done running. Eg:</p>

<pre class="ruby"><span class="ruby-constant">Minitest</span>.<span class="ruby-identifier">after_run</span> { <span class="ruby-identifier">p</span> <span class="ruby-identifier">$debugging_info</span> }
</pre>

                              <div class="method-source-code" id="after_run-source">
            <pre><span class="ruby-comment"># File minitest-5.20.0/lib/minitest.rb, line 97</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">after_run</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
  <span class="ruby-identifier">@@after_run</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">block</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-c-autorun" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">autorun</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Registers <a href="Minitest.html"><code>Minitest</code></a> to run at process exit</p>

                              <div class="method-source-code" id="autorun-source">
            <pre><span class="ruby-comment"># File minitest-5.20.0/lib/minitest.rb, line 69</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">autorun</span>
  <span class="ruby-keyword">if</span> <span class="ruby-constant">Object</span>.<span class="ruby-identifier">const_defined?</span>(<span class="ruby-value">:Warning</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-constant">Warning</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:[]=</span>)
    <span class="ruby-constant">Warning</span>[<span class="ruby-value">:deprecated</span>] = <span class="ruby-keyword">true</span>
  <span class="ruby-keyword">end</span>

  <span class="ruby-identifier">at_exit</span> {
    <span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">$!</span> <span class="ruby-keyword">and</span> <span class="ruby-keyword">not</span> (<span class="ruby-identifier">$!</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">SystemExit</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">$!</span>.<span class="ruby-identifier">success?</span>)

    <span class="ruby-identifier">exit_code</span> = <span class="ruby-keyword">nil</span>

    <span class="ruby-identifier">pid</span> = <span class="ruby-constant">Process</span>.<span class="ruby-identifier">pid</span>
    <span class="ruby-identifier">at_exit</span> {
      <span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">Minitest</span>.<span class="ruby-identifier">allow_fork</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-constant">Process</span>.<span class="ruby-identifier">pid</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">pid</span>
      <span class="ruby-identifier">@@after_run</span>.<span class="ruby-identifier">reverse_each</span>(<span class="ruby-operator">&amp;</span><span class="ruby-value">:call</span>)
      <span class="ruby-identifier">exit</span> <span class="ruby-identifier">exit_code</span> <span class="ruby-operator">||</span> <span class="ruby-keyword">false</span>
    }

    <span class="ruby-identifier">exit_code</span> = <span class="ruby-constant">Minitest</span>.<span class="ruby-identifier">run</span> <span class="ruby-constant">ARGV</span>
  } <span class="ruby-keyword">unless</span> <span class="ruby-identifier">@@installed_at_exit</span>
  <span class="ruby-identifier">@@installed_at_exit</span> = <span class="ruby-keyword">true</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-c-run" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">run</span><span
                                class="method-args">(args = [])</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>This is the top-level run method. Everything starts from here. It tells each Runnable sub-class to run, and each of those are responsible for doing whatever they do.</p>

<p>The overall structure of a run looks like this:</p>

<pre class="ruby"><span class="ruby-constant">Minitest</span>.<span class="ruby-identifier">autorun</span>
  <span class="ruby-constant">Minitest</span>.<span class="ruby-identifier">run</span>(<span class="ruby-identifier">args</span>)
    <span class="ruby-constant">Minitest</span>.<span class="ruby-identifier">__run</span>(<span class="ruby-identifier">reporter</span>, <span class="ruby-identifier">options</span>)
      <span class="ruby-constant">Runnable</span>.<span class="ruby-identifier">runnables</span>.<span class="ruby-identifier">each</span>
        <span class="ruby-identifier">runnable</span>.<span class="ruby-identifier">run</span>(<span class="ruby-identifier">reporter</span>, <span class="ruby-identifier">options</span>)
          <span class="ruby-keyword">self</span>.<span class="ruby-identifier">runnable_methods</span>.<span class="ruby-identifier">each</span>
            <span class="ruby-keyword">self</span>.<span class="ruby-identifier">run_one_method</span>(<span class="ruby-keyword">self</span>, <span class="ruby-identifier">runnable_method</span>, <span class="ruby-identifier">reporter</span>)
              <span class="ruby-constant">Minitest</span>.<span class="ruby-identifier">run_one_method</span>(<span class="ruby-identifier">klass</span>, <span class="ruby-identifier">runnable_method</span>)
                <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">runnable_method</span>).<span class="ruby-identifier">run</span>
</pre>

                              <div class="method-source-code" id="run-source">
            <pre><span class="ruby-comment"># File minitest-5.20.0/lib/minitest.rb, line 143</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">run</span> <span class="ruby-identifier">args</span> = []
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">load_plugins</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-string">&quot;--no-plugins&quot;</span>) <span class="ruby-operator">||</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;MT_NO_PLUGINS&quot;</span>]

  <span class="ruby-identifier">options</span> = <span class="ruby-identifier">process_args</span> <span class="ruby-identifier">args</span>

  <span class="ruby-constant">Minitest</span>.<span class="ruby-identifier">seed</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:seed</span>]
  <span class="ruby-identifier">srand</span> <span class="ruby-constant">Minitest</span>.<span class="ruby-identifier">seed</span>

  <span class="ruby-identifier">reporter</span> = <span class="ruby-constant">CompositeReporter</span>.<span class="ruby-identifier">new</span>
  <span class="ruby-identifier">reporter</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">SummaryReporter</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>[<span class="ruby-value">:io</span>], <span class="ruby-identifier">options</span>)
  <span class="ruby-identifier">reporter</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">ProgressReporter</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>[<span class="ruby-value">:io</span>], <span class="ruby-identifier">options</span>)

  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">reporter</span> = <span class="ruby-identifier">reporter</span> <span class="ruby-comment"># this makes it available to plugins</span>
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">init_plugins</span> <span class="ruby-identifier">options</span>
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">reporter</span> = <span class="ruby-keyword">nil</span> <span class="ruby-comment"># runnables shouldn&#39;t depend on the reporter, ever</span>

  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">parallel_executor</span>.<span class="ruby-identifier">start</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">parallel_executor</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:start</span>)
  <span class="ruby-identifier">reporter</span>.<span class="ruby-identifier">start</span>
  <span class="ruby-keyword">begin</span>
    <span class="ruby-identifier">__run</span> <span class="ruby-identifier">reporter</span>, <span class="ruby-identifier">options</span>
  <span class="ruby-keyword">rescue</span> <span class="ruby-constant">Interrupt</span>
    <span class="ruby-identifier">warn</span> <span class="ruby-string">&quot;Interrupted. Exiting...&quot;</span>
  <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">parallel_executor</span>.<span class="ruby-identifier">shutdown</span>
  <span class="ruby-identifier">reporter</span>.<span class="ruby-identifier">report</span>

  <span class="ruby-identifier">reporter</span>.<span class="ruby-identifier">passed?</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                          </section>

                <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
                <header>
                <h3>Public Instance Methods</h3>
                </header>

                  <div id="method-i-backtrace_filter" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">backtrace_filter</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Filter object for backtraces.</p>

                              <div class="method-source-code" id="backtrace_filter-source">
            <pre><span class="ruby-comment"># File minitest-5.20.0/lib/minitest.rb, line 43</span>
<span class="ruby-identifier">cattr_accessor</span> <span class="ruby-value">:backtrace_filter</span>
</pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-extensions" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">extensions</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Names of known extension plugins.</p>

                              <div class="method-source-code" id="extensions-source">
            <pre><span class="ruby-comment"># File minitest-5.20.0/lib/minitest.rb, line 55</span>
<span class="ruby-identifier">cattr_accessor</span> <span class="ruby-value">:extensions</span>
</pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-info_signal" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">info_signal</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>The signal to use for dumping information to STDERR. Defaults to “INFO”.</p>

                              <div class="method-source-code" id="info_signal-source">
            <pre><span class="ruby-comment"># File minitest-5.20.0/lib/minitest.rb, line 60</span>
<span class="ruby-identifier">cattr_accessor</span> <span class="ruby-value">:info_signal</span>
</pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-parallel_executor" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">parallel_executor</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p><a href="Minitest/Parallel.html"><code>Parallel</code></a> test executor</p>

                              <div class="method-source-code" id="parallel_executor-source">
            <pre><span class="ruby-comment"># File minitest-5.20.0/lib/minitest.rb, line 33</span>
<span class="ruby-identifier">cattr_accessor</span> <span class="ruby-value">:parallel_executor</span>
</pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-reporter" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">reporter</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Reporter object to be used for all runs.</p>

<p>NOTE: This accessor is only available during setup, not during runs.</p>

                              <div class="method-source-code" id="reporter-source">
            <pre><span class="ruby-comment"># File minitest-5.20.0/lib/minitest.rb, line 50</span>
<span class="ruby-identifier">cattr_accessor</span> <span class="ruby-value">:reporter</span>
</pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-seed" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">seed</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>The random seed used for this run. This is used to srand at the start of the run and between each <code>Runnable.run</code>.</p>

<p>Set via <a href="Minitest.html#method-c-run"><code>Minitest.run</code></a> after processing args.</p>

                              <div class="method-source-code" id="seed-source">
            <pre><span class="ruby-comment"># File minitest-5.20.0/lib/minitest.rb, line 28</span>
<span class="ruby-identifier">cattr_accessor</span> <span class="ruby-value">:seed</span>
</pre>
                              </div>
                            </div>


                          </div>

                          </section>

              </section>
              </main>



            </div>  <!--  class='wrapper hdiv' -->


<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.</p>
<p>Based on <a href="https://github.com/ged/darkfish/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>

  
    <p><p><a href="https://ruby-doc.org">Ruby-doc.org</a> is provided by <a href="https://jamesbritt.com">James Britt</a> and <a href="https://neurogami.com">Neurogami</a>.</p><p><a href="https://jamesbritt.bandcamp.com/">Maximum R+D</a>.  </p>
</p>
  
  </footer>

<script type="text/javascript">


  let ads  = $("#carbonads-container").children().detach();


  function swapMode() {
    var cookieName = 'darkmode';
    var cssDarkmode = Cookies.get(cookieName);
    console.log("***** swapMode! " + cssDarkmode + " *****");


    if (cssDarkmode == "true") {
      console.log("We have dark mode, set the css to light ...");
      $('#rdoccss').attr("href", defaultModeCssHref);
      $('#cssSelect').text("Dark mode");
      cssDarkmode = "false";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    } else {
      console.log("We not have dark mode, set the css to dark ...");
      $('#rdoccss').attr("href", darkModeCsseHref);
      $('#cssSelect').text("Light mode");
      cssDarkmode = "true";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    }

    console.log("  --------------- ");
  }


const vueCssApp = new Vue({
el: '#menubar',
data: {
isDark: false
},
methods: {
toggleClass: function(event){
this.isDark = !this.isDark;
}
}
})

const vueApp = new Vue({
el: '#vapp',
data: { 
isOpen: true
},

mounted() {
this.handleResize();
this.manage_mob_classes();
window.addEventListener('resize', this.handleResize)
//this.isOpen !=  (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},
destroyed() {
window.removeEventListener('resize', this.handleResize)
},
created() {
//manage_mob_classes();
},

methods : {
isMobile() {
  return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},

  handleResize() {
    if (!this.isMobile()) {
      this.isOpen = window.innerWidth > 800;
    }
  },

  manage_mob_classes() {
    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
      $("nav").addClass("mob_nav");
      $("main").addClass("mob_main");
      $("#extraz").addClass("mob_extraz");
      $("#carbonads-container").addClass("mob_carbonads-container");
      this.isOpen  = false;
    } else {
      $("nav").removeClass("mob_nav") 
        $("main").removeClass("mob_main");
      $("#extraz").removeClass("mob_extraz");
      $("#carbonads-container").removeClass("mob_carbonads-container");
      this.isOpen  = true;
    }
  },

  toggleNav() {
    this.isOpen =! this.isOpen ;
    // alert("Toggle nav!");
    console.log("toggleNav() click: " + this.isOpen );
  }
}
})

$("#carbonads-container").append(ads);


$(function() {

    var darkmode = Cookies.get("darkmode");
    console.log("Document ready: " + darkmode);

    if ( darkmode  == "true" ) {
      $('#cssSelect').text("Light mode");
    } else {
      $('#cssSelect').text("Dark mode");
     }

    $('body').css('display','block');
    });

</script>

    
  </body> 
</html>

